package org.wdl.stockManagement.service.baseinfo.impl;

import java.util.List;

import org.wdl.stockManagement.dao.baseinfo.IUserDAO;
import org.wdl.stockManagement.service.baseinfo.IUserService;
import org.wdl.stockManagement.vo.UserInfo;



public class UserService implements IUserService {

	private IUserDAO userDAO;
	public IUserDAO getUserDAO() {
		return userDAO;
	}

	public void setUserDAO(IUserDAO userDAO) {
		this.userDAO = userDAO;
	}

	public void changeUserInfo(UserInfo userInfo) {
		userDAO.changeUserInfo(userInfo);
	}

	public void deleteUser(UserInfo userInfo) {
		userDAO.deleteUser(userInfo);
		
	}

	public UserInfo logOut() {
		return userDAO.logOut();
	}

	public UserInfo login(String userName, String passWord) {
		// TODO Auto-generated method stub
		return userDAO.login(userName, passWord);
	}

	public void saveUser(UserInfo userInfo) {
		// TODO Auto-generated method stub
		userDAO.saveUser(userInfo);
	}
	public List getUserByHql(String hql) {
		//TODO
		return userDAO.getUserByHql(hql);
		
	}



}
